int step(int dt)
Parameter | Type | Description |
---|---|---|
dt | int | elapsed time in ms |
Returns TRUE is particle moved, FALSE if particle did not move.
This function updates the particle for an specified elapsed time. The particle will be moved based according to its current velocity and the velocity will be updated using the current force and mass. If the collision flag is turned on, collision will be tested and the position and velocity will be changed based on collsion point, normal, bump, and friction factors.